package com.atguigu.eduorder.service.client;

import com.atguigu.commonutils.vo.OrderUcenterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author He Wentao
 * @since 2022/10/2 19:31
 */

@FeignClient("service-ucenter")
public interface UcenterClient {

    // 使用公共的 VO 类，返回用户相关信息
    @GetMapping("/educenter/member/getUserInfoOrder/{id}")
    public OrderUcenterVo getUserInfoOrder(@PathVariable("id") String id);

}
